package pure.engine.core
{
    import flash.system.ApplicationDomain;

public class ApplicationDomainInfo
{
    public function ApplicationDomainInfo()
    {
        
    }
    
	
	
    public var applicationDomain:ApplicationDomain;
    
    public var classNameList:Array;
    
	public var weakReference:Boolean;
	
    
    
    public function get length():int
    {
        return classNameList.length;
    }
    
    
    public function getClass(className:String):Class
    {
        var index:int = classNameList.indexOf(className);
        if(index != -1)
        {
            return applicationDomain.getDefinition(className) as Class;
        }
        return null;
    }

    
    public function dispose():void
    {
        classNameList = null;
        applicationDomain = null;
    }
}
}